package com.ly.user_system.dto;

import com.ly.user_system.base.BaseDto;
import com.ly.user_system.entity.BaseSysRole;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;


@EqualsAndHashCode(callSuper = true)
@Data
@AutoMapper(target = BaseSysRole.class)
public class BaseSysRoleDTO extends BaseDto {

    @NotEmpty(message = "name")
    private String name;

    private String label;

    private String remark;

    private Integer relevance;

    private Set<Long> menuIdList;

    private Set<Long> departmentIdList;

}